﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Management.Core.Picture
{
    public class Picture
    {
        [Key]
        public int PictureID { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "存储路径")]
        public string Path { get; set; }

        [Display(Name = "缩略图路径")]
        public string ThumbPath { get; set; }

        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Display(Name = "模型名称")]
        public string Model { get; set; }

        /// <summary>
        /// 图片类型 0-头像，1-其他
        /// </summary>
        [Display(Name = "图片类型")]
        public int PicType { get; set; }

        [Display(Name = "创建时间")]
        public DateTime Created_at { get; set; }

        [Display(Name = "创建时间")]
        public DateTime Updated_at { get; set; }
    }
}
